<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>表单form元素 | 拼命赶进度</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-ace/ace.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
    

        
    
    
    <link rel="next" href="./CSS.html" />
    
    
    <link rel="prev" href="./列表及表格.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.4"
        data-chapter-title="表单form元素"
        data-filepath="表单form元素.md"
        data-basepath="."
        data-revision="Sun Sep 03 2017 23:30:11 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="./index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="html.html">
            
                
                    <a href="./html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="常用元素.html">
            
                
                    <a href="./常用元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        常用元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="图片音频视频.html">
            
                
                    <a href="./图片音频视频.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        图片音频视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="列表及表格.html">
            
                
                    <a href="./列表及表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        列表及表格
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.4" data-path="表单form元素.html">
            
                
                    <a href="./表单form元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        表单form元素
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="CSS.html">
            
                
                    <a href="./CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="如何引入CSS.html">
            
                
                    <a href="./如何引入CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        如何引入CSS
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="选择器.html">
            
                
                    <a href="./选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="通配选择符.html">
            
                
                    <a href="./通配选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        通配选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="元素选择符.html">
            
                
                    <a href="./元素选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        元素选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="id 及 class 选择符.html">
            
                
                    <a href="./id 及 class 选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        id 及 class 选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="群组选择符.html">
            
                
                    <a href="./群组选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        群组选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="关系选择符.html">
            
                
                    <a href="./关系选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        关系选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="属性选择符.html">
            
                
                    <a href="./属性选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="伪类选择符.html">
            
                
                    <a href="./伪类选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        伪类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="伪对象选择符.html">
            
                
                    <a href="./伪对象选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.8.</b>
                        
                        伪对象选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="CSS的常用样式.html">
            
                
                    <a href="./CSS的常用样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        CSS的常用样式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="字体样式.html">
            
                
                    <a href="./字体样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="元素分类.html">
            
                
                    <a href="./元素分类.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        元素样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="边框.html">
            
                
                    <a href="./边框.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.3.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="盒子模型.html">
            
                
                    <a href="./盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="段落样式.html">
            
                
                    <a href="./段落样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.5.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="背景样式.html">
            
                
                    <a href="./背景样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.6.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="列表样式.html">
            
                
                    <a href="./列表样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.7.</b>
                        
                        列表样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="变形样式.html">
            
                
                    <a href="./变形样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.8.</b>
                        
                        变形样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="过渡动画.html">
            
                
                    <a href="./过渡动画.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.9.</b>
                        
                        过渡动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="自定义动画.html">
            
                
                    <a href="./自定义动画.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.10.</b>
                        
                        自定义动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="布局.html">
            
                
                    <a href="./布局.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.11.</b>
                        
                        布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="视口.html">
            
                
                    <a href="./视口.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.12.</b>
                        
                        视口
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="CSS总结.html">
            
                
                    <a href="./CSS总结.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.13.</b>
                        
                        CSS总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="JavaScript.html">
            
                
                    <a href="./JavaScript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        JavaScript
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="./" >拼命赶进度</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x8868;&#x5355;form&#x5143;&#x7D20;">&#x8868;&#x5355;form&#x5143;&#x7D20;</h1>
<ul>
<li>&#x8868;&#x5355;&#x662F;&#x4E00;&#x4E2A;&#x5305;&#x542B;&#x8868;&#x5355;&#x5143;&#x7D20;&#x7684;&#x533A;&#x57DF;&#x3002;</li>
<li>&#x8868;&#x5355;&#x80FD;&#x591F;&#x5305;&#x542B; input &#x5143;&#x7D20;&#xFF0C;textarea&#x3001;select&#x3001;fieldset&#x3001;legend &#x548C; label &#x5143;&#x7D20;&#x3002;</li>
<li>&#x8868;&#x5355;&#x4F7F;&#x7528;&#x6807;&#x7B7E;<code>&#xFF08;&lt;form&gt;&#xFF09;</code>&#x5B9A;&#x4E49;&#x3002;</li>
<li>&#x8868;&#x5355;&#x7528;&#x4E8E;&#x5411;&#x670D;&#x52A1;&#x5668;&#x4F20;&#x8F93;&#x6570;&#x636E;&#x3002;</li>
</ul>
<p>&#x8868;&#x5355;&#x7684;&#x57FA;&#x672C;&#x7ED3;&#x6784;&#xFF1A;</p>
<pre><code>&lt;form name=&quot;form1&quot; action=&quot;URL&quot; method=&quot;get&quot;&gt;
    &#x7528;&#x6237;&#x540D;&#xFF1A;&lt;input type=&quot;text&quot; name=&quot;uname&quot; /&gt;
    &#x5BC6; &#x7801;&#xFF1A;&lt;input type=&quot;password&quot; name=&quot;passwd&quot; /&gt;
&lt;/form&gt;
</code></pre><p>&#x8BF4;&#x660E;&#xFF1A;</p>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>&#x8868;&#x5355;&#x7684;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td>action</td>
<td>&#x8868;&#x5355;&#x63D0;&#x4EA4;&#x5730;&#x5740;</td>
</tr>
<tr>
<td>method</td>
<td>&#x8868;&#x5355;&#x6570;&#x636E;&#x63D0;&#x4EA4;&#x7684;&#x65B9;&#x5F0F; &#xFF08;get ,post&#xFF09;</td>
</tr>
<tr>
<td>enctype</td>
<td>MIME&#x7C7B;&#x578B;</td>
</tr>
<tr>
<td>target</td>
<td>&#x6253;&#x5F00;&#x65B9;&#x5F0F;</td>
</tr>
</tbody>
</table>
<h2 id="input&#x8868;&#x5355;&#x5143;&#x7D20;&#xFF1A;&#x8F93;&#x5165;&#x6846;"><code>&lt;input&gt;</code>(&#x8868;&#x5355;&#x5143;&#x7D20;&#xFF1A;&#x8F93;&#x5165;&#x6846;)</h2>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>input&#x5143;&#x7D20;&#x7C7B;&#x578B;</td>
</tr>
<tr>
<td>name</td>
<td>input &#x5143;&#x7D20;&#x7684;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td>value</td>
<td>input &#x5143;&#x7D20;&#x7684;&#x503C;</td>
</tr>
<tr>
<td>size</td>
<td>input &#x5143;&#x7D20;&#x7684;&#x5BBD;&#x5EA6;</td>
</tr>
<tr>
<td>readonly</td>
<td>&#x662F;&#x5426;&#x53EA;&#x8BFB;</td>
</tr>
<tr>
<td>maxlength</td>
<td>&#x8F93;&#x5165;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5927;&#x957F;&#x5EA6;</td>
</tr>
<tr>
<td>disabled</td>
<td>&#x662F;&#x5426;&#x7981;&#x7528;</td>
</tr>
<tr>
<td>placeholder</td>
<td>&#x63D0;&#x793A;&#x8BED;</td>
</tr>
</tbody>
</table>
<ul>
<li>&#x6587;&#x672C;&#x6846;</li>
</ul>
<pre><code>&lt;input type=&quot;text&quot; name=&quot;username&quot; value=&quot;&quot; /&gt;
</code></pre><ul>
<li>&#x5BC6;&#x7801;&#x6846;</li>
</ul>
<pre><code>&lt;input type=&quot;password&quot;name=&quot;passwd&quot;/&gt;
</code></pre><ul>
<li>&#x5355;&#x9009;&#x6309;&#x94AE;</li>
</ul>
<pre><code>&lt;input type=&quot;radio&quot;name=&quot;sex&quot;value=&quot;1&quot;checked=&quot;checked&quot; /&gt;&#x7537;

&lt;input type=&quot;radio&quot;name=&quot;sex&quot;value=&quot;0&quot;/&gt;&#x5973;
</code></pre><ul>
<li>&#x590D;&#x9009;&#x6846;</li>
</ul>
<pre><code>&lt;input type=&quot;checkbox&quot;name=&quot;love&quot;value=&quot;music&quot; checked=&quot;checked&quot;/&gt; &#x542C;&#x97F3;&#x4E50;

&lt;input type=&quot;checkbox&quot;name=&quot;love&quot; value=&quot;movie&quot;/&gt; &#x770B;&#x7535;&#x5F71;

&lt;input type=&quot;checkbox&quot;name=&quot;love&quot; value=&quot;game&quot;/&gt; &#x73A9;&#x6E38;&#x620F;
</code></pre><ul>
<li>&#x6309;&#x94AE;</li>
</ul>
<pre><code>&lt;input type=&quot;button&quot; name=&quot;btn&quot; value=&quot;&#x786E;&#x5B9A;&quot;/&gt;

&lt;input type=&quot;submit&quot; name=&quot;comit&quot; value=&quot;&#x63D0;&#x4EA4;&quot;/&gt;

&lt;input type=&quot;reset&quot; name=&quot;reset&quot; value=&quot;&#x91CD;&#x5199;&quot;/&gt;

&lt;input type=&quot;image&quot;name=&quot;img_btn&quot; src=&quot;btn.gif&quot;/&gt;
</code></pre><p><code>&lt;lable&gt;</code> &#x6807;&#x7B7E;&#x7684;&#x4F5C;&#x7528;&#x662F;&#x5C06;&#x8F93;&#x5165;&#x9879;&#x6216;&#x9009;&#x9879;&#x53CA;&#x5176;&#x6807;&#x7B7E;&#x6587;&#x5B57;&#x5173;&#x8054;&#x8D77;&#x6765;&#x3002;</p>
<pre><code>    &lt;input type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;1&quot; id=&quot;male&quot; /&gt;
    &lt;label for=&quot;male&quot;&gt;&#x7537;&lt;/label&gt;
    &lt;input type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;0&quot; id=&quot;female&quot; /&gt;
    &lt;label for=&quot;female&quot;&gt;&#x5973;&lt;/label&gt;
</code></pre><ul>
<li>&#x9690;&#x85CF;&#x57DF;   </li>
</ul>
<p>&#x9690;&#x85CF;&#x57DF;&#x7528;&#x4E8E;&#x5728;&#x7A0B;&#x5E8F;&#x53D1;&#x9001;&#x6CA1;&#x6709;&#x5FC5;&#x8981;&#x8BA9;&#x7528;&#x6237;&#x770B;&#x5230;&#x7279;&#x5B9A;&#x503C;&#x7684;&#x65F6;&#x5019;&#x4F7F;&#x7528;&#x3002;</p>
<pre><code>   &lt;input type=&quot;hidden&quot; name=&quot;uid&quot; value=&quot;10&quot;/&gt;
</code></pre><ul>
<li>&#x4E0A;&#x4F20;&#x6587;&#x4EF6;</li>
</ul>
<pre><code>    &lt;input type=&#x201C;file&#x201D; name=&#x201C;photo&#x201D;/&gt;
</code></pre><blockquote>
<p>&#x5229;&#x7528;&#x8FD9;&#x9879;&#x529F;&#x80FD;&#x65F6;&#xFF0C;&#x5728; form &#x6807;&#x7B7E;&#x4E2D;&#x8981;&#x6307;&#x5B9A;method&#x5C5E;&#x6027;&#x3002;&#x8981;&#x628A;method &#x6307;&#x5B9A;&#x4E3A;post, enctype&#x5C5E;&#x6027;&#x6307;&#x5B9A;&#x4E3A; multipart/form-data&#x3002;<br>multiple     &#x63A7;&#x5236;&#x662F;&#x5426;&#x4E0A;&#x4F20;&#x591A;&#x6587;&#x4EF6;</p>
</blockquote>
<h2 id="&#x8868;&#x5355;input&#x6240;&#x6709;type&#x7C7B;&#x578B;">&#x8868;&#x5355;input&#x6240;&#x6709;type&#x7C7B;&#x578B;</h2>
<table>
<thead>
<tr>
<th>button</th>
<th>&#x5B9A;&#x4E49;&#x53EF;&#x70B9;&#x51FB;&#x7684;&#x6309;&#x94AE;&#xFF08;&#x5927;&#x591A;&#x4E0E; JavaScript &#x4F7F;&#x7528;&#x6765;&#x542F;&#x52A8;&#x811A;&#x672C;&#xFF09;</th>
</tr>
</thead>
<tbody>
<tr>
<td>checkbox</td>
<td>&#x5B9A;&#x4E49;&#x590D;&#x9009;&#x6846;&#x3002;</td>
</tr>
<tr>
<td>color</td>
<td>&#x5B9A;&#x4E49;&#x62FE;&#x8272;&#x5668;&#x3002;</td>
</tr>
<tr>
<td>date    v&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;&#xFF08;&#x5E26;&#x6709; calendar &#x63A7;&#x4EF6;&#xFF09;</td>
</tr>
<tr>
<td>datetime</td>
<td>&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;&#xFF08;&#x5E26;&#x6709; calendar &#x548C; time &#x63A7;&#x4EF6;&#xFF09;</td>
</tr>
<tr>
<td>datetime-local</td>
<td>&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;&#xFF08;&#x5E26;&#x6709; calendar &#x548C; time &#x63A7;&#x4EF6;&#xFF09;</td>
</tr>
<tr>
<td>month</td>
<td>&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;&#x7684;&#x6708;&#xFF08;&#x5E26;&#x6709; calendar &#x63A7;&#x4EF6;&#xFF09;</td>
</tr>
<tr>
<td>week</td>
<td>&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;&#x7684;&#x5468;&#xFF08;&#x5E26;&#x6709; calendar &#x63A7;&#x4EF6;&#xFF09;</td>
</tr>
<tr>
<td>time</td>
<td>&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;&#x7684;&#x65F6;&#x3001;&#x5206;&#x3001;&#x79D2;&#xFF08;&#x5E26;&#x6709; time &#x63A7;&#x4EF6;&#xFF09;</td>
</tr>
<tr>
<td>email</td>
<td>&#x5B9A;&#x4E49;&#x7528;&#x4E8E; e-mail &#x5730;&#x5740;&#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;</td>
</tr>
<tr>
<td>file</td>
<td>&#x5B9A;&#x4E49;&#x8F93;&#x5165;&#x5B57;&#x6BB5;&#x548C; &quot;&#x6D4F;&#x89C8;...&quot; &#x6309;&#x94AE;&#xFF0C;&#x4F9B;&#x6587;&#x4EF6;&#x4E0A;&#x4F20;</td>
</tr>
<tr>
<td>hidden</td>
<td>&#x5B9A;&#x4E49;&#x9690;&#x85CF;&#x8F93;&#x5165;&#x5B57;&#x6BB5;</td>
</tr>
<tr>
<td>image</td>
<td>&#x5B9A;&#x4E49;&#x56FE;&#x50CF;&#x4F5C;&#x4E3A;&#x63D0;&#x4EA4;&#x6309;&#x94AE;</td>
</tr>
<tr>
<td>number</td>
<td>&#x5B9A;&#x4E49;&#x5E26;&#x6709; spinner &#x63A7;&#x4EF6;&#x7684;&#x6570;&#x5B57;&#x5B57;&#x6BB5;</td>
</tr>
<tr>
<td>password</td>
<td>&#x5B9A;&#x4E49;&#x5BC6;&#x7801;&#x5B57;&#x6BB5;&#x3002;&#x5B57;&#x6BB5;&#x4E2D;&#x7684;&#x5B57;&#x7B26;&#x4F1A;&#x88AB;&#x906E;&#x853D;&#x3002;</td>
</tr>
<tr>
<td>radio</td>
<td>&#x5B9A;&#x4E49;&#x5355;&#x9009;&#x6309;&#x94AE;&#x3002;</td>
</tr>
<tr>
<td>range</td>
<td>&#x5B9A;&#x4E49;&#x5E26;&#x6709; slider &#x63A7;&#x4EF6;&#x7684;&#x6570;&#x5B57;&#x5B57;&#x6BB5;&#x3002;</td>
</tr>
<tr>
<td>reset</td>
<td>&#x5B9A;&#x4E49;&#x91CD;&#x7F6E;&#x6309;&#x94AE;&#x3002;&#x91CD;&#x7F6E;&#x6309;&#x94AE;&#x4F1A;&#x5C06;&#x6240;&#x6709;&#x8868;&#x5355;&#x5B57;&#x6BB5;&#x91CD;&#x7F6E;&#x4E3A;&#x521D;&#x59CB;&#x503C;&#x3002;</td>
</tr>
<tr>
<td>search</td>
<td>&#x5B9A;&#x4E49;&#x7528;&#x4E8E;&#x641C;&#x7D22;&#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;&#x3002;</td>
</tr>
<tr>
<td>submit</td>
<td>&#x5B9A;&#x4E49;&#x63D0;&#x4EA4;&#x6309;&#x94AE;&#x3002;&#x63D0;&#x4EA4;&#x6309;&#x94AE;&#x5411;&#x670D;&#x52A1;&#x5668;&#x53D1;&#x9001;&#x6570;&#x636E;&#x3002;</td>
</tr>
<tr>
<td>tel</td>
<td>&#x5B9A;&#x4E49;&#x7528;&#x4E8E;&#x7535;&#x8BDD;&#x53F7;&#x7801;&#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;&#x3002;</td>
</tr>
<tr>
<td>text</td>
<td>&#x9ED8;&#x8BA4;&#x3002;&#x5B9A;&#x4E49;&#x5355;&#x884C;&#x8F93;&#x5165;&#x5B57;&#x6BB5;&#xFF0C;&#x7528;&#x6237;&#x53EF;&#x5728;&#x5176;&#x4E2D;&#x8F93;&#x5165;&#x6587;&#x672C;&#x3002;&#x9ED8;&#x8BA4;&#x662F; 20 &#x4E2A;&#x5B57;&#x7B26;&#x3002;</td>
</tr>
<tr>
<td>url</td>
<td>&#x5B9A;&#x4E49;&#x7528;&#x4E8E; URL &#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;&#x3002;</td>
</tr>
</tbody>
</table>
<h2 id="textarea&#x8868;&#x5355;&#x5143;&#x7D20;&#xFF1A;&#x591A;&#x884C;&#x6587;&#x672C;&#x57DF;">textarea(&#x8868;&#x5355;&#x5143;&#x7D20;&#xFF1A;&#x591A;&#x884C;&#x6587;&#x672C;&#x57DF;)</h2>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>&#x5143;&#x7D20;&#x7684;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td>rows</td>
<td>&#x6307;&#x5B9A;&#x6587;&#x672C;&#x6846;&#x7684;&#x9AD8;&#x5EA6;</td>
</tr>
<tr>
<td>cols</td>
<td>&#x6307;&#x5B9A;&#x6587;&#x672C;&#x6846;&#x7684;&#x5BBD;&#x5EA6;</td>
</tr>
</tbody>
</table>
<pre><code>&lt;textarea name=&quot;content&quot; rows=&quot;5&quot; cols=&quot;50&quot;&gt; &lt;/textarea&gt;
</code></pre><blockquote>
<p>&#x5728;&#x975E;IE&#x6D4F;&#x89C8;&#x5668;&#x4E0B;&#xFF0C;&#x90FD;&#x4F1A;&#x51FA;&#x73B0;&#x53EF;&#x62D6;&#x52A8;&#x5927;&#x5C0F;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x7981;&#x6B62;&#xFF0C;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;css&#x5C5E;&#x6027;</p>
</blockquote>
<pre><code>textarea{
         resize:none;
        }
</code></pre><h2 id="select&#x8868;&#x5355;&#x5143;&#x7D20;&#xFF1A;&#x4E0B;&#x62C9;&#x6846;">select(&#x8868;&#x5355;&#x5143;&#x7D20;&#xFF1A;&#x4E0B;&#x62C9;&#x6846;)</h2>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>&#x4E0B;&#x62C9;&#x5217;&#x8868;&#x6846;&#x7684;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td>size</td>
<td>&#x4E0B;&#x62C9;&#x5217;&#x8868;&#x6846;&#x7684;&#x663E;&#x793A;&#x884C;&#x6570;</td>
</tr>
<tr>
<td>multiple</td>
<td>&#x662F;&#x5426;&#x591A;&#x9009;</td>
</tr>
<tr>
<td>disabled</td>
<td>&#x662F;&#x5426;&#x7981;&#x7528;</td>
</tr>
<tr>
<td>selected</td>
<td>&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#x7684;&#x9009;&#x9879;</td>
</tr>
<tr>
<td>value</td>
<td>&#x9009;&#x9879;&#x7684;&#x503C;</td>
</tr>
</tbody>
</table>
<pre><code>&lt;select name=&quot;city&quot;&gt;
&lt;option value=&quot;0&quot;&gt;&#x8BF7;&#x9009;&#x62E9;&lt;/option
&lt;option value=&quot;bj&quot;&gt;&#x5317;&#x4EAC;&lt;/option&gt;
&lt;option value=&quot;gz&quot;&gt;&#x5E7F;&#x5DDE;&lt;/option&gt;
&lt;/select&gt;
</code></pre><h2 id="optgroup&#x8868;&#x5355;&#x5143;&#x7D20;&#xFF1A;&#x4E0B;&#x62C9;&#x6846;&#x5206;&#x7EC4;">optgroup(&#x8868;&#x5355;&#x5143;&#x7D20;&#xFF1A;&#x4E0B;&#x62C9;&#x6846;&#x5206;&#x7EC4;)</h2>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>label</td>
<td>&#x6307;&#x5B9A;&#x7EC4;&#x5408;&#x9009;&#x9879;&#x540D;&#x79F0;</td>
</tr>
</tbody>
</table>
<pre><code>    &lt;select name=&quot;city&quot; multiple&gt;
        &lt;optgroup label=&quot;&#x5E7F;&#x4E1C;&quot;&gt;
            &lt;option value=&quot;1&quot;&gt;&#x5E7F;&#x5DDE;&lt;/option&gt;
            &lt;option value=&quot;2&quot;&gt;&#x6DF1;&#x5733;&lt;/option&gt;
        &lt;/optgroup&gt;
        &lt;optgroup label=&quot;&#x5176;&#x4ED6;&quot;&gt;
            &lt;option value=&quot;3&quot;&gt;&#x957F;&#x6C99;&lt;/option&gt;
            &lt;option value=&quot;4&quot;&gt;&#x9999;&#x6E2F;&lt;/option&gt;
        &lt;/optgroup&gt;
     &lt;/select&gt;
</code></pre><h2 id="base">base</h2>
<p>&#x63A7;&#x5236;&#x6574;&#x4E2A;&#x9875;&#x9762;&#x6240;&#x6709;&#x5916;&#x90E8;&#x94FE;&#x63A5;&#x7684;&#x6839;&#x5730;&#x5740;
&#x4F1A;&#x81EA;&#x52A8;&#x62FC;&#x63A5;&#x5728;&#x8BE5;&#x9875;&#x9762;&#x4E0B;&#x9762;&#x7684;&#x6240;&#x6709;&#x76F8;&#x5BF9;&#x5730;&#x5740;&#x7684;&#x524D;&#x9762;</p>
<pre><code>     &lt;head&gt;
        &lt;base href=&quot;/20160727HTML/&quot; /&gt;
    &lt;/head&gt;
s&lt;body&gt;
        &lt;!&#x2013; -
        &#x8FD9;&#x91CC;&#x7684;&#x76F8;&#x5BF9;&#x5730;&#x5740;&#xFF0C;&#x4F1A;&#x81EA;&#x52A8;&#x62FC;&#x63A5;base&#x7684;&#x503C;&#xFF0C;&#x5373;/20160727HTML/img/xx.jpg
        -- &gt;
        &lt;img src=&#x201C;img/xx.jpg&#x201D;/&gt;
    &lt;/body&gt;
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="./列表及表格.html" class="navigation navigation-prev " aria-label="Previous page: 列表及表格"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="./CSS.html" class="navigation navigation-next " aria-label="Next page: CSS"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-ace/ace/ace.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-ace/ace.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"ace":{},"mdinhtml":{},"highlight":{},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
